<div class="tree-node tree-node-content">
    <a class="btn btn-default btn-xs" ng-if="item.subTree && item.subTree.length > 0" data-nodrag="" ng-click="toggle(this)">
        <span class="glyphicon glyphicon-chevron-right" ng-class="{
            'glyphicon-chevron-right': collapsed,
            'glyphicon-chevron-down': !collapsed
        }"></span></a>
    <span ng-class="{
            'menu' : item.level < 2,
            'leaf' : !item.subTree || item.subTree.length == 0,
        }">
    <input type="checkbox" class="checkboxes" value="item.id" name="selectedurl" id="item.id" ng-model="item.checked" ng-change="tick(item)">
    {{item.name}}
    <span ng-if="item.level >= 2">:{{item.url}}</span>
    </span>
</div>
<ul ui-tree-nodes="" ng-model="item.subTree" ng-class="{hidden: collapsed}" style="list-style:none">
    <li ng-repeat="item in item.subTree" ui-tree-node ng-include="'sysManage/urlItem.html'"></li>
</ul>